﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000CE RID: 206
	internal class FixExt8 : IExtDecoder
	{
		// Token: 0x0600030F RID: 783 RVA: 0x0000BF29 File Offset: 0x0000A329
		private FixExt8()
		{
		}

		// Token: 0x06000310 RID: 784 RVA: 0x0000BF34 File Offset: 0x0000A334
		public ExtensionResult Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 10;
			sbyte typeCode = (sbyte)bytes[offset + 1];
			byte[] data = new byte[]
			{
				bytes[offset + 2],
				bytes[offset + 3],
				bytes[offset + 4],
				bytes[offset + 5],
				bytes[offset + 6],
				bytes[offset + 7],
				bytes[offset + 8],
				bytes[offset + 9]
			};
			return new ExtensionResult(typeCode, data);
		}

		// Token: 0x040000EA RID: 234
		internal static readonly IExtDecoder Instance = new FixExt8();
	}
}
